package com.zh.remote.api;

import com.zh.constants.Constants;
import com.zh.remote.fallback.DriverApiFallback;
import com.zh.remote.pojo.param.DriverSummaryResult;
import com.zh.result.JSONResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 远程保存Login对象
 */
@FeignClient(value = Constants.Remote.SERVICE_DRIVER,fallbackFactory = DriverApiFallback.class )
@Tag(name = "司机表",description = "司机表")
public interface DriverApi {

    @Operation( summary= "远程查司机汇总数据",description = "远程查司机汇总数据")
    @Parameter(name = "driverId",description = "司机ID",required = true)
    @GetMapping("remote/select/driverSummary/{driverId}")
    JSONResult<DriverSummaryResult> getDriverSummary(@PathVariable("driverId") Long  driverId);

}


